let themeNode = this.get_theme_node();
let adjustedForWidth = themeNode.adjust_for_width(forWidth);
let [, showAppsButton] = this.get_children();
- let [minHeight, ] = showAppsButton.get_preferred_height(adjustedForWidth);
- [minHeight, ] = themeNode.adjust_preferred_height(minHeight, natHeight);
+ let [minHeight] = showAppsButton.get_preferred_height(adjustedForWidth);
+ [minHeight] = themeNode.adjust_preferred_height(minHeight, natHeight);
return [minHeight, natHeight];
}
if (forWidth < 0)
nColumns = children.length;
else
- [nColumns, ] = this._computeLayout(forWidth);
+ [nColumns] = this._computeLayout(forWidth);
let nRows;
if (nColumns > 0)
this._clonesAnimating.push(actorClone);
Main.uiGroup.add_actor(actorClone);
- let [width, height,,] = this._getAllocatedChildSizeAndSpacing(actor);
+ let [width, height] = this._getAllocatedChildSizeAndSpacing(actor);
actorClone.set_size(width, height);
let scaleX = sourceScaledWidth / width;
let scaleY = sourceScaledHeight / height;
getVisibleWidth() {
let child = this.actor.get_first_child();
- let [, , natWidth, ] = child.get_preferred_size();
+ let [, , natWidth] = child.get_preferred_size();
return natWidth;
}
let exists = false;
if (type == INPUT_SOURCE_TYPE_XKB) {
- [exists, displayName, shortName, , ] =
+ [exists, displayName, shortName] =
this._xkbInfo.get_layout_info(id);
} else if (type == INPUT_SOURCE_TYPE_IBUS) {
if (this._disableIBus)
if (infosList.length == 0) {
let type = INPUT_SOURCE_TYPE_XKB;
let id = KeyboardManager.DEFAULT_LAYOUT;
- let [ , displayName, shortName, , ] = this._xkbInfo.get_layout_info(id);
+ let [ , displayName, shortName] = this._xkbInfo.get_layout_info(id);
infosList.push({ type: type, id: id, displayName: displayName, shortName: shortName });
}
vfunc_get_preferred_width(forHeight) {
let themeNode = this.get_theme_node();
- let [maxChildMin, ] = this._maxChildWidth(forHeight);
- let [minListWidth, ] = this._list.get_preferred_width(forHeight);
+ let [maxChildMin] = this._maxChildWidth(forHeight);
+ let [minListWidth] = this._list.get_preferred_width(forHeight);
return themeNode.adjust_preferred_width(maxChildMin, minListWidth);
}